import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import ElementUI from 'element-ui'
import 'element-ui/lib/theme-chalk/index.css';
import VueAwesomeSwiper from 'vue-awesome-swiper'
import 'swiper/css/swiper.css'
import './index.css'
import './index.css'
import axios from '@/api/request'
import taxios from '@/api/tokenRequest'
import message from './utils/message'
import cookie  from 'vue-cookies'
import loading from '@/utils/loading'

Vue.use(VueAwesomeSwiper)


Vue.config.productionTip = false
Vue.use(ElementUI)
Vue.prototype.$axios = axios
Vue.prototype.$taxios = taxios
Vue.prototype.$message = message
Vue.prototype.$loading = loading
Vue.use(cookie)
// Vue.prototype.$router = router
// axios.defaults.baseURL='/api';

new Vue({
  router,
  store,
  axios,
  render: h => h(App)
}).$mount('#app')
